package com.wss.day01;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/21
 */
public class Result {
    private float java;
    private float c;
    private float database;

    public Result() {
    }

    public Result(float java, float c, float database) {
        this.java = java;
        this.c = c;
        this.database = database;
    }


    public float getJava() {
        return java;
    }


    public void setJava(float java) {
        this.java = java;
    }


    public float getC() {
        return c;
    }


    public void setC(float c) {
        this.c = c;
    }


    public float getDatabase() {
        return database;
    }


    public void setDatabase(float database) {
        this.database = database;
    }

    public void average(){
        System.out.println("平均成绩："+(java+c+database)/3);
    }
    public void all(){
        System.out.println("总成绩："+(java+c+database));
    }


    }

